<template>
    <!-- <router-view></router-view> -->
    home1
    <router-view v-slot="{ Component }">
        <keep-alive  :include="['city']">
            <component :is="Component" />
        </keep-alive>
    </router-view>
</template>

<script steup lang="ts">
onBeforeRouteLeave(() => {
    console.log("213123");
    // alert();
    // scrollTop.value = document.documentElement.scrollTop || 0
    // console.log(scrollTop.value);
})
</script>

<style lang="scss" scoped></style>